#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int i = 0;
    int num = 1;
    int count = 0;
    do
    {
        printf("%02d", num);
        num++;
        count++;
        if (count == n)
        {
            printf("\n");
            n--;
            count = 0;
        }
    } while (n);
    return 0;
}